import { HYEventStore } from "hy-event-store"
import { getPlaylistdetail } from "../serive/music"

const recommendStore = new HYEventStore({
    state:{
        recommendInfo: {}
    },
    actions: {
        async fetchRecommeendAction(ctx) {
           const res = await getPlaylistdetail(2884035)
           ctx.recommendInfo = res.playlist
        }
    }
})

export default recommendStore